FROM python:3.7-slim
MAINTAINER cege,<cege@site.com>

RUN echo "Asia/Shanghai" > /etc/timezone
RUN pip install --no-cache-dir scrapyd
RUN sed -i 's/127.0.0.1/0.0.0.0/' /usr/local/lib/python3.7/site-packages/scrapyd/default_scrapyd.conf

EXPOSE 6800
CMD ["scrapyd"]
